#include <stdio.h>

int main() {
    long long n;
    scanf("%lld", &n);
    int arr[9];
    int i = 0;
    for (; i <= 8; i++) {
        if (n == 0)
            break;
        else {
            arr[i] = n % 10;
            n = n / 10;
        }
    }
    i--;
    int j = i;
    for (; i >= 0; i--) {
        if (arr[i] % 2 == 0)
            arr[i] = 0;
        else
            arr[i] = 1;
    }
    int flag = 0;
    for (; j >= 0; j--) {
        if (flag != 0 || arr[j] != 0) {
            printf("%d", arr[j]);
            flag = 1;
        }
    }
    return 0;
}